package modeles;

import java.util.Date;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable
public class News{

	@PrimaryKey
	@Persistent
	private String nom;
	
	@Persistent
	private String contenuDeLaNews;
	
	@Persistent
	private Date dateDeMiseEnLigne;
	

	public News(String nom, String contenuDeLaNews) {
		this.setDateDeMiseEnLigne(new Date());
		this.nom = nom;
		this.contenuDeLaNews = contenuDeLaNews;
	}

	public News() {
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getContenuDeLaNews() {
		return contenuDeLaNews;
	}

	public void setContenuDeLaNews(String contenuDeLaNews) {
		this.contenuDeLaNews = contenuDeLaNews;
	}

	public Date getDateDeMiseEnLigne() {
		return dateDeMiseEnLigne;
	}

	public void setDateDeMiseEnLigne(Date dateDeMiseEnLigne) {
		this.dateDeMiseEnLigne = dateDeMiseEnLigne;
	}

}
